Entry: Set tooltip text on icon for emoji chooser
authorDaniel Boles <dboles@src.gnome.org>
Wed, 30 Aug 2017 11:48:23 +0000 (12:48 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 1 Sep 2017 21:28:31 +0000 (17:28 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=786885

gtk/gtkentry.c

index f7735d2cedbb1486b3d53f839591c9bdbcfd15e9..a1bbe6b189821c74281d589cd78bd8ab91024cab 100644 (file)
@@ -9900,6 +9900,10 @@ set_show_emoji_icon (GtkEntry *entry,
                                       GTK_ENTRY_ICON_SECONDARY,
                                       TRUE);
 
+      gtk_entry_set_icon_tooltip_text (entry,
+                                       GTK_ENTRY_ICON_SECONDARY,
+                                       _("Insert Emoji"));
+
       g_signal_connect (entry, "icon-press", G_CALLBACK (pick_emoji), NULL);
     }
   else
@@ -9909,6 +9913,10 @@ set_show_emoji_icon (GtkEntry *entry,
       gtk_entry_set_icon_from_icon_name (entry,
                                          GTK_ENTRY_ICON_SECONDARY,
                                          NULL);
+
+      gtk_entry_set_icon_tooltip_text (entry,
+                                       GTK_ENTRY_ICON_SECONDARY,
+                                       NULL);
     }
 
   g_object_notify_by_pspec (G_OBJECT (entry), entry_props[PROP_SHOW_EMOJI_ICON]);